package pl.kosmowska.ewelina.client.views;

import java.util.List;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.StockDataProxy;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface StockView extends IsWidget {

	interface Presenter {
		void goTo(Place place);

		void getStockDataList();

		void deleteStockData(StockDataProxy selectedItem);

		void goToStockAddPlace();

		void goToStockEditPlace(StockDataProxy stockDataProxy);
	}

	void setPresenter(Presenter presenter);


	void reInitView(List<StockDataProxy> stockData);

	void updateAfterDelete(StockDataProxy stockDataProxy);


	boolean isAlreadyInit();


	void setAlreadyInit(boolean alreadyInit);


	void showMessage(String message);
}
